﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SYH.Domain.ViewModels.Common
{
    /// <summary>
    /// 附件上传返回对象（由于需要兼容前端，所以使用小写字母开头）
    /// </summary>
    public class JsonUploadVM
    {
        public JsonUploadVM()
        {

        }
        public JsonUploadVM(bool isSuccess)
        {
            success = isSuccess;
        }
        /// <summary>
        /// 返回上传是否成功
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 返回文件路径
        /// </summary>
        public string file { get; set; }
        /// <summary>
        /// 返回上传文件名
        /// </summary>
        public string fileName { get; set; }
        /// <summary>
        /// 返回文件存储id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 上传文件的根目录
        /// </summary>
        public string uploadPath { get; set; }
        /// <summary>
        /// 返回消息
        /// </summary>
        public string msg { get; set; }
    }
}
